Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/peLuis123/Stripe_Back/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST /api/customers/create Creates a new customer in Stripe with the provided email, name, and phone number. All three fields are required.

Request Body

email
string
required
Customer’s email address
name
string
required
Customer’s full name
phone
string
required
Customer’s phone number

Response

status
boolean
Indicates if the request was successful
message
string
Response message describing the result
data
object
Customer object containing the created customer information

Examples

curl -X POST https://your-domain.com/api/customers/create \
  -H "Content-Type: application/json" \
  -d '{
    "email": "customer@example.com",
    "name": "John Doe",
    "phone": "+1234567890"
  }'

Response Examples

Success (201)

{
  "status": true,
  "message": "Cliente creado correctamente",
  "data": {
    "id": "cus_1234567890abcdef",
    "email": "customer@example.com",
    "name": "John Doe",
    "phone": "+1234567890"
  }
}

Error (400)

{
  "status": false,
  "message": "email, name y phone son requeridos",
  "code": null
}

Error (500)

{
  "status": false,
  "message": "Error interno del servidor",
  "code": null
}